<%--
  Created by IntelliJ IDEA.
  User: lkx
  Date: 2020/12/15
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="admin_menu.jsp"%>
<html>

<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;
            </span><span class="crumb-name">农产品管理</span>
        </div>
    </div>
    <div class="search-wrap">
        <div class="search-content">
            <form action="/Houtai/manager/CLSelect" method="get">
                <table class="search-tab">
                    <tr>
                        <th width="70">关键字:</th>
                        <td><input class="common-text" placeholder="关键字" name="keyword" value="${param.keyword}" id="" type="text"></td>
                        <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="result-wrap">
        <form name="myform" id="myform" method="post">
            <div class="result-title">
                <div class="result-list">
                    <a href="admin_fenlei_add.jsp"><i class="icon-font"></i>新增产品</a>

                </div>
            </div>
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr>
                        <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>

                        <th>ID</th>
                        <th>农产品名</th>
                        <th>分类名</th>

                        <th>操作</th>

                    </tr>

                    <c:forEach var="u" items="${CL_list}">
                        <tr>
                            <td class="tc"><input name="id[]" value="${u.id}" type="checkbox"></td>
                            <td>${u.id}</td>
                            <td>${u.AP_name}</td>
                            <td>${u.CL_name}</td>


                            <td>
                                <a class="link-update" href="/Houtai/manager/CLtoupdate?id=${u.id}">修改</a>


                                <c:if test="${u.CL_Status==1}">
                                    <a class="link-del" href="javascript:Delete('你确定要删除用户${u.AP_name}吗?','/Houtai/manager/CLDelet?id=${u.id}')">删除</a>
                                </c:if>


                            </td>
                        </tr>
                    </c:forEach>
                    <script>
                        function Delete(mess,url) {
                            if (confirm(mess)){
                                location.href=url;
                            }

                        }
                    </script>
                </table>

<%--                <div class="list-page">--%>
<%--                    共${tsum}条记录，当前${cpage}/${tpage}页--%>
<%--                    <a href="/Houtai/manager/admin_DoUserSelect?cp=1${searchParams}">首页</a>--%>
<%--                    <a href="/Houtai/manager/admin_DoUserSelect?cp=${cpage-1<1?1:cpage-1}${searchParams}">上一页</a>--%>
<%--                    <a href="/Houtai/manager/admin_DoUserSelect?cp=${cpage+1>tpage?tpage:cpage+1}${searchParams}">下一页</a>--%>
<%--                    <a href="/Houtai/manager/admin_DoUserSelect?cp=${tpage}${searchParams}">尾页</a>--%>
<%--                </div>--%>

            </div>
        </form>
    </div>
</div>
<!--/main-->
</div>
</body>
</html>
